package net.xju3_4.service.impl;


import net.xju3_4.common.utils.PageInfo;
import net.xju3_4.dao.OrderDao;
import net.xju3_4.entity.OrderEntity;
import net.xju3_4.service.OrderService;

public class OrderServiceImpl implements OrderService {

    OrderDao orderDao = new OrderDao();

    @Override
    public boolean insert(OrderEntity order) {
        return orderDao.insert(order);
    }

    @Override
    public boolean orderDelete(int id) {
        return orderDao.orderDelete(id);
    }

    @Override
    public boolean orderUpdate(OrderEntity order) {
        return orderDao.orderUpdate(order);
    }

    @Override
    public PageInfo<OrderEntity> orderPageList(String carId, String userId, String status, String merchantId, int pageNum, int pageSize) {
        return orderDao.orderPageList(carId, userId, status, merchantId,pageNum, pageSize);
    }
}
